package com.xy.novelmanagement.mapper;

import com.xy.model.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NovelAddMapper {
		public List<Catalog> getNovelCatalogs(String novelName);

		boolean existNovel(String novelName);

		void insertCatalogMsg(String novelName, String catalogName, String updateTime);

		void insertCatalogContent(String novelName, String catalogName, String content);

		Integer checkAuthor(String author);

		void addAuthor(Author auth);

		void addNovel(Novel novel);

		Integer checkNovel(String novelName);

		void cleanCatalog(String novelName);

		void cleanCatalogContent(String novelName);

		void addAuthorWork(String bookName, String bookAuthor, String format);

		void addCatalogContents(List<CatalogContent> list);

		void addCatalogs(List<Catalog> list);

		void addNovelType(List<NovelType> types);

    	Novel selectNovel(Novel novel);

	void updateWords(Novel novel);

    int getBookStatus(String bookName);
    void addBookStatus(String bookName,String bookStatus);
}
